import util from "../../utils/util.js"

/** 获取订单列表数据 */
export function OrderLists(params) {
  return util.request({
    url: "/order/pageList",
    method: 'post',
    params,
  })
}

/** 获取订单列表mock数据 */
function mockFetchOrdersCount(params) {
  const { delay } = require('../_utils/delay');
  const { genOrdersCount } = require('../../model/order/orderList');

  return delay().then(() => genOrdersCount(params));
}

/** 获取订单列表统计 */
export function fetchOrdersCount(params) {
  return new Promise((resolve) => {
    resolve('real api');
  });
}
